﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="wctlActividadListar.ascx.vb" 
Inherits="Controls_wctlActividadListar"%>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"    Namespace="DevExpress.Web.ASPxDataView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<%@ Register Assembly="AnthemExtensions" Namespace="AnthemExtensions" TagPrefix="anthemext" %>



<script type="text/javascript">

    function OnRowClick(e) {
        _aspxClearSelection();
        dgvListadoActividades._selectAllRowsOnPage(false);
        dgvListadoActividades.SelectRow(e.visibleIndex, true);
    }
</script>
<link href="../styles/base.css"rel="stylesheet" type="text/css" /> 
<style type="text/css">
    .style1
    {
        width: 33px;
    }
    .style2
    {
        width: 47px;
    }
    .style3
    {
        width: 34px;
    }
</style>
<fieldset style="font-size: 8pt; margin-left: 10px; width: 98%">
    <div>
<%--<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>--%>
  
         <table width="500" style=" font-family:Georgia ">
            <tr>
                <td valign="top" class="style1">
                    &nbsp;</td>
                    
            </tr>
            <tr><td>
            <table>
                <tr>
        <td class="style3">
                    <asp:Label ID="Label3" runat="server" Font-Bold="False" Text="Descripcion" 
                        EnableViewState="False"></asp:Label>
                    </td>
                <td class="style2">

                    <anthem:TextBox ID="txtDescripcion" runat="server" BorderStyle="Solid" 
                        CssClass="textBoxMaroon" Height="22px" Width="344px"></anthem:TextBox>
                    </td>
                    <td>
                        <asp:Button ID="btnConsultar" runat="server" CssClass="button2" 
                            Text="Consultar" Width="79px" Height="23px" />
                    </td>
                    <td>
                          &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
        <td class="style3">
                    &nbsp;</td>
                <td class="style2">

                    &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                          &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
            </td>
                </tr>
         <tr><td>
         
          <dx:ASPxGridView ID="dgvListadoActividades" runat="server" 
                        AutoGenerateColumns="False" 
                        Caption="Listado de Actividades Registrados" Width="600px"  
                        Font-Bold="False" 
                        ClientInstanceName="dgvListadoActividades" 
                 KeyFieldName="actActividadID" 
                 CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue">
                        <Columns>
                            <dx:GridViewCommandColumn VisibleIndex="0" Width="10px">
                                <ClearFilterButton Visible="True">
                                </ClearFilterButton>
                            </dx:GridViewCommandColumn>
                            <dx:GridViewDataTextColumn Caption="ID" FieldName="actActividadID" 
                                Visible="False" VisibleIndex="1" ReadOnly="True">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Actividad" FieldName="actDescActividad" 
                                ReadOnly="True" VisibleIndex="1"
                                Width="60%">
                                <HeaderStyle Wrap="True" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Tipo Actividad" FieldName="TIPACTIVIDAD" VisibleIndex="3"
                                Width="10%">
                            </dx:GridViewDataTextColumn>
                            
                        </Columns>
                        <Styles cssfilepath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                            csspostfix="PlasticBlue">
                            <Header Font-Bold="True" imagespacing="10px" sortingimagespacing="10px"></Header>
                            <AlternatingRow  Enabled="True"></AlternatingRow>
                        </Styles> 
                        <ClientSideEvents RowClick="function(s, e) { OnRowClick(e);}" />
                        <Settings ShowFilterRow="True" />
                    </dx:ASPxGridView>
                                        
         </td>
         </tr><tr><td><table><tr><td>
                <asp:Button ID="btnNuevo" runat="server" CssClass="button2" Text="Nuevo" 
                     Width="76px" />
                        </td>
                        <td>
         <asp:Button ID="btnEditar" runat="server"  Text="Editar" CssClass="button2" Width="87px" />
                        </td><td>
                    <asp:Button ID="btnAnular" runat="server" CssClass="button2" 
                        Text="Anular" Width="77px" />
                        <td><asp:Button ID="btnRetornar" runat="server" CssClass="button2" Text="Retornar" 
                                Width="86px" AccessKey="R" > 
                                    </asp:Button>
                        </td>
                    </td>
                    </tr>
            </table>
            </td>
            </tr>
            <tr style="margin-left: 120px"><td><span class="footerText">
                    <asp:Label ID="lblMensaje" runat="server" Font-Size="Small" ForeColor="#C00000"></asp:Label>
                </span>
                    <asp:HiddenField ID="hdnhorcodReghora" runat="server" />
                </td>
                </tr>
        </table>
<%--    </ContentTemplate>
</asp:UpdatePanel>
--%>
    </div>
</fieldset>